package com.jdcjk.project.navigation.model;

import android.content.Context;

import com.jdcjk.R;
import com.jdcjk.base.model.BaseModel;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2016/12/21 0021.
 */

public class NavigationFindModel extends BaseModel {
    public NavigationFindModel(Context context) {
        super(context);
    }

    public List<Map<String, Object>> getNaviTypeData() {

        List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();

        //每个Map结构为一条数据，key与Adapter中定义的String数组中定义的一一对应。

        HashMap<String, Object> map = new HashMap<String, Object>();
        map.put("typeImg", R.mipmap.navi_type_walk);
        map.put("typeName", R.string.navi_type_walk);
        list.add(map);

        HashMap<String, Object> map2 = new HashMap<String, Object>();
        map2.put("typeImg", R.mipmap.navi_type_ride);
        map2.put("typeName", R.string.navi_type_ride);
        list.add(map2);

        HashMap<String, Object> map3 = new HashMap<String, Object>();
        map3.put("typeImg", R.mipmap.navi_type_drive);
        map3.put("typeName", R.string.navi_type_drive);
        list.add(map3);

        return list;
    }

}
